package com.bc.trade.model;

import com.bc.common.basemodel.BaseFeeModel;
import com.bc.trade.config.R;
import com.fs.common.util.FSJedis;

@SuppressWarnings("serial")
public class FeeModel extends BaseFeeModel<FeeModel> {
	public static final FeeModel dao = new FeeModel().dao();
	/**
	 * 获取费率模式
	 * 
	 * @param id
	 * @return
	 */
	public static FeeModel findFeeModel(Integer id) {
		if(R.IS_REDIS) {
			return FSJedis.get(R.RK_FEE_MODEL, id.toString(), FeeModel.class);
		} else {
			return dao.findById(id);
		}
	}
	
	
	
}
